import request from "@/utils/request";

// 数据修订列表
export function taskList(params) {
  return request({
    url: `/modify/taskList`,
    method: "get",
    params
  });
}
// 样品列表
export function sampledList(params) {
  return request({
    url: `/modify/sampledList`,
    method: "get",
    params
  });
}

// 查询样品详情
export function sampleDetail(params) {
  return request({
    url: `/modify/getSampleDetailBySampleNo/${params}`,
    method: "get"
  });
}

// 采样数据修订
export function revise(data) {
  return request({
    url: `/modify/revise`,
    method: "post",
    data
  });
}

// 样品修订历史记录
export function sampleModifyList(params) {
  return request({
    url: `/modify/sampleModifyList`,
    method: "get",
    params
  });
}

// 样品修订详情
export function modifyDetail(params) {
  return request({
    url: `/modify/modifyDetail`,
    method: "get",
    params
  });
}

// 因子列表
export function checkFactors(params) {
  return request({
    url: `/modify/checkFactors`,
    method: "get",
    params
  });
}

// 修订因子数据
export function modifydata(data) {
  return request({
    url: `/modify/modify`,
    method: "post",
    data
  });
}

// 因子修订历史列表
export function factorModifyList(params) {
  return request({
    url: `/modify/factorModifyList`,
    method: "get",
    params
  });
}
